import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '规则类型',
    align: "center",
    dataIndex: 'ruleType'
  },
  {
    title: '规则名称',
    align: "center",
    dataIndex: 'name_dictText'
  },
  {
    title: '规则唯一编码',
    align: "center",
    dataIndex: 'code'
  },
  {
    title: '状态',
    align: "center",
    dataIndex: 'status_dictText'
  },
  {
    title: '动态规则参数',
    align: "center",
    dataIndex: 'params'
  },
  {
    title: '执行优先级',
    align: "center",
    dataIndex: 'priority'
  },
  {
    title: '规则生效时间',
    align: "center",
    dataIndex: 'startTime'
  },
  {
    title: '规则失效时间',
    align: "center",
    dataIndex: 'endTime'
  },
  {
    title: '创建时间',
    align: "center",
    dataIndex: 'createdTime'
  },
];

// 高级查询数据
export const superQuerySchema = {
  ruleType: {title: '规则类型',order: 0,view: 'number', type: 'number',},
  name: {title: '规则名称',order: 1,view: 'list', type: 'string',dictCode: 'point_name',},
  code: {title: '规则唯一编码',order: 2,view: 'text', type: 'string',},
  status: {title: '状态',order: 3,view: 'number', type: 'number',dictCode: 'point_status',},
  params: {title: '动态规则参数',order: 4,view: 'text', type: 'string',},
  priority: {title: '执行优先级',order: 5,view: 'number', type: 'number',},
  startTime: {title: '规则生效时间',order: 6,view: 'datetime', type: 'string',},
  endTime: {title: '规则失效时间',order: 7,view: 'datetime', type: 'string',},
  createdTime: {title: '创建时间',order: 8,view: 'datetime', type: 'string',},
};
